
#include <BButton>
#include <BTextEdit>
#include <BAudioOutput>
#include <BMainWindow>

#include "Recorder.h"
#include "Speaker.h"
#include "WaveViewer.h"

using namespace BWE;

class MainWindow : public BMainWindow
{
public:
	MainWindow();
	~MainWindow();

protected:
	void initUI();
	void initSignals();
	
protected:
	void procPlay(BObject* object, const BValue& value);
	void procRecord(BObject* object, const BValue& value);
	void procStop(BObject* object, const BValue& value);
	void procOpen(BObject* object, const BValue& value);
	void procSave(BObject* object, const BValue& value);
	void procRecording(BObject* object, const BValue& value);
	void procPlayOver(BObject* object, const BValue& value);

private:
	Recorder*	_recorder;
	Speaker*	_speaker;
	BTextEdit*	_output;
	BButton*	_recordButton;
	BButton*	_playButton;
	BButton*	_stopButton;
	BButton*	_openButton;
	BButton*	_saveButton;
};